<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <title></title>
        <link rel="stylesheet" rev="stylesheet" href="/css/style.css" type="text/css" media="all" />
    </head>
    <body class="ContentBody">
        <form action="{{$http_url}}/audit/userAudit/" method="post"  name="form" >
            <div class="MainDiv">
                <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
                    <tr>
                        <th class="tablestyle_title" >用户审核并授权</th>
                    </tr>
                    <tr>
                        <td class="CPanel">
                            <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                                <tr>
                                    <td width="100%">
                                        <fieldset style="height:100%;">
                                            <legend>审核授权用户信息</legend>
                                            <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                                <tr>
                                                    <td nowrap align="right" width="15%">IC卡号:</td>
                                                    <td width="35%">{{$detail.0.user.iccard }}</td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">用户名:</td>
                                                    <td width="35%">{{$detail.0.user.username}}</td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">用户别名:</td>
                                                    <td width="35%">{{$detail.0.nickname}}</td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">邮箱:</td>
                                                    <td width="35%">{{$detail.0.user.email}}</td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">电话:</td>
                                                    <td width="35%">{{$detail.0.user.phone}}</td>
                                                </tr>
                                                <br>
                                                <tr>
                                                    <td nowrap align="right" width="15%">所属部门:</td>
                                                    <td width="35%">{{$detail.0.user.depName}}</td>
                                                </tr>
                                                <br>
                                                <tr>
                                                    <td nowrap align="right" width="15%">密级:</td>
                                                    <td width="35%">{{$level}}</td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">权限:</td>
                                                    <td width="35%">
                                                        <select name="is_audit" id="is_audit">
                                                            <option value=''>-----</option>
                                                            <option value="1">普通</option>
                                                            <option value="2">审核申请</option>
                                                            <option value="3">回收光盘</option>
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">用户登陆方式:</td>
                                                    <td width="35%">
                                                        <select name="login_land">
                                                            <option value=''>-----</option>
                                                            <option value="1">用户名/密码登录</option>
                                                            <option value="2">USBKey登录</option>
                                                            <option value="3">门户系统集成登录</option>
                                                        </select>
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                        </fieldset></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" height="50px">
                            <input type="submit" id='allow' name="submit" value="允许通过并授权" class="button" />　
                            <input type="submit" id='ban' name="submit2" value="禁止通过该审核" class="button" />　
                            <input type="button" name="Submit3" value="返回" class="button" onclick="window.location='{{$http_url}}/audit/userListAudit/'"/>
                        </td>
                    </tr>
                </table>
            </div>
            <input type="hidden" name="audit_id" value="{{$detail.0.id}}" />
            <input type="hidden" name="type" id='click_type' />
        </form>
        <script type="text/javascript" src="{{$http_url}}/js/jquery.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#allow").click(function(){
                    if($("#is_audit").val()==''){
                        alert("请给用户设置权限!");
                        return false;
                    }
                    if(confirm('允许对此用户通过审核?')){
                        $("#click_type").val(1);
                    }else{
                        return false;
                    }
                });
                $("#ban").click(function(){
                    if(confirm('禁止对此用户通过审核?')){
                        $("#click_type").val(0);
                    }else{
                        return false;
                    }
                });
            })
        </script>
    </body>
</html>